//联系我们
CONTACT_US = {};

CONTACT_US.__INIT__=function(){
    mainView.router.load({
        url: "src/my_center/contact_us/contact_us.html"
    });
}

CONTACT_US.submit_btn = function(){
	var message = $('.contact_us').val();
	var url = url_('addons/execute/user-App-contact_us');
	var data = {'message':message,'community_id':SESSION.get_community_id()};
	var success = function(d){
		if (d.code == 0) {
			my_tips_('提交成功',function(){
				go_('my_center')
			})
		} else if(d.code == 1011){
			my_tips_(d.msg,function(){
				go_("login")
			});
		} else{
			my_tips_(d.msg);
		}
	}
	request_(url,data,success)
}
